﻿#ifndef __SS_TEST_MSG_THREAD3_H__
#define __SS_TEST_MSG_THREAD3_H__
#include <cstdio>
#include "thread/ssMsgThread.h"

using namespace StarSeeker;

class ssTestMsgThread3 : public ssMsgThread
{
public:
	ssTestMsgThread3(int id)
	{
		m_id = id;
		m_test2 = 0;
		m_recv = 0;
	}
	void SetThread(ssMsgThread* ptest2)
	{
        m_test2 = ptest2;
	}
private:
	virtual void HandleMessage(ssMsg_s &m)
	{
        //if(m.msgID==1)
        {
            if(m_test2)
                m_test2->PostMsg(200, m_id, 0, 0, 0);
            m_recv++;
        }
		printf("thread3:r %d\n", m_recv);
		ssMsgThread::Sleep(2);
	}

public:
	int m_id;
	ssMsgThread* m_test2;
	int m_recv;
};

#endif
